package cn.edu.csust.coursecard.service;

import cn.edu.csust.coursecard.dao.entity.Association;
import cn.edu.csust.coursecard.dao.entity.AssociationCategory;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface IAssociationService {
    /**
     * 添加社团分类
     */
    void addCategory(AssociationCategory category);
    
    /**
     * 获取所有分类
     */
    List<AssociationCategory> getAllCategory();
    
    /**
     * 删除分类
     */
    void deleteCategory(Integer categoryId);
    
    /**
     * 添加社团西悉尼
     */
    void addAssociation(Association association, MultipartFile icon);
    
    /**
     * 删除社团信息
     */
    void deleteAssociation(Integer id);
    
    /**
     * 通过社团分类获取社团信息
     */
    List<Association> getAssociationByCategory(Integer categoryId);
    
    List<Association> getAllAssociation();
}
